﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DC5 RID: 3525
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RaidKickByServerScNotify : IMessage<RaidKickByServerScNotify>, IMessage, IEquatable<RaidKickByServerScNotify>, IDeepCloneable<RaidKickByServerScNotify>, IBufferMessage
	{
		// Token: 0x17002CC5 RID: 11461
		// (get) Token: 0x06009E40 RID: 40512 RVA: 0x001A7423 File Offset: 0x001A5623
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RaidKickByServerScNotify> Parser
		{
			get
			{
				return RaidKickByServerScNotify._parser;
			}
		}

		// Token: 0x17002CC6 RID: 11462
		// (get) Token: 0x06009E41 RID: 40513 RVA: 0x001A742A File Offset: 0x001A562A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RaidKickByServerScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CC7 RID: 11463
		// (get) Token: 0x06009E42 RID: 40514 RVA: 0x001A743C File Offset: 0x001A563C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RaidKickByServerScNotify.Descriptor;
			}
		}

		// Token: 0x06009E43 RID: 40515 RVA: 0x001A7443 File Offset: 0x001A5643
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidKickByServerScNotify()
		{
		}

		// Token: 0x06009E44 RID: 40516 RVA: 0x001A744C File Offset: 0x001A564C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidKickByServerScNotify(RaidKickByServerScNotify other) : this()
		{
			this.raidId_ = other.raidId_;
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this.reason_ = other.reason_;
			this.worldLevel_ = other.worldLevel_;
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009E45 RID: 40517 RVA: 0x001A74CC File Offset: 0x001A56CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidKickByServerScNotify Clone()
		{
			return new RaidKickByServerScNotify(this);
		}

		// Token: 0x17002CC8 RID: 11464
		// (get) Token: 0x06009E46 RID: 40518 RVA: 0x001A74D4 File Offset: 0x001A56D4
		// (set) Token: 0x06009E47 RID: 40519 RVA: 0x001A74DC File Offset: 0x001A56DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x17002CC9 RID: 11465
		// (get) Token: 0x06009E48 RID: 40520 RVA: 0x001A74E5 File Offset: 0x001A56E5
		// (set) Token: 0x06009E49 RID: 40521 RVA: 0x001A74ED File Offset: 0x001A56ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x17002CCA RID: 11466
		// (get) Token: 0x06009E4A RID: 40522 RVA: 0x001A74F6 File Offset: 0x001A56F6
		// (set) Token: 0x06009E4B RID: 40523 RVA: 0x001A74FE File Offset: 0x001A56FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OJLOFJKJBOL Reason
		{
			get
			{
				return this.reason_;
			}
			set
			{
				this.reason_ = value;
			}
		}

		// Token: 0x17002CCB RID: 11467
		// (get) Token: 0x06009E4C RID: 40524 RVA: 0x001A7507 File Offset: 0x001A5707
		// (set) Token: 0x06009E4D RID: 40525 RVA: 0x001A750F File Offset: 0x001A570F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17002CCC RID: 11468
		// (get) Token: 0x06009E4E RID: 40526 RVA: 0x001A7518 File Offset: 0x001A5718
		// (set) Token: 0x06009E4F RID: 40527 RVA: 0x001A7520 File Offset: 0x001A5720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x06009E50 RID: 40528 RVA: 0x001A7529 File Offset: 0x001A5729
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RaidKickByServerScNotify);
		}

		// Token: 0x06009E51 RID: 40529 RVA: 0x001A7538 File Offset: 0x001A5738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RaidKickByServerScNotify other)
		{
			return other != null && (other == this || (this.RaidId == other.RaidId && object.Equals(this.Lineup, other.Lineup) && this.Reason == other.Reason && this.WorldLevel == other.WorldLevel && object.Equals(this.Scene, other.Scene) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009E52 RID: 40530 RVA: 0x001A75BC File Offset: 0x001A57BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this.Reason != OJLOFJKJBOL.RaidKickReasonNone)
			{
				num ^= this.Reason.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009E53 RID: 40531 RVA: 0x001A765F File Offset: 0x001A585F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009E54 RID: 40532 RVA: 0x001A7667 File Offset: 0x001A5867
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009E55 RID: 40533 RVA: 0x001A7670 File Offset: 0x001A5870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Reason != OJLOFJKJBOL.RaidKickReasonNone)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.Reason);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Lineup);
			}
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RaidId);
			}
			if (this.scene_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Scene);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009E56 RID: 40534 RVA: 0x001A771C File Offset: 0x001A591C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this.Reason != OJLOFJKJBOL.RaidKickReasonNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Reason);
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009E57 RID: 40535 RVA: 0x001A77BC File Offset: 0x001A59BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RaidKickByServerScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			if (other.Reason != OJLOFJKJBOL.RaidKickReasonNone)
			{
				this.Reason = other.Reason;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009E58 RID: 40536 RVA: 0x001A7878 File Offset: 0x001A5A78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009E59 RID: 40537 RVA: 0x001A7884 File Offset: 0x001A5A84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 8U)
					{
						this.Reason = (OJLOFJKJBOL)input.ReadEnum();
						continue;
					}
					if (num == 32U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 42U)
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
						continue;
					}
					if (num == 72U)
					{
						this.RaidId = input.ReadUInt32();
						continue;
					}
					if (num == 106U)
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003D0B RID: 15627
		private static readonly MessageParser<RaidKickByServerScNotify> _parser = new MessageParser<RaidKickByServerScNotify>(() => new RaidKickByServerScNotify());

		// Token: 0x04003D0C RID: 15628
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D0D RID: 15629
		public const int RaidIdFieldNumber = 9;

		// Token: 0x04003D0E RID: 15630
		private uint raidId_;

		// Token: 0x04003D0F RID: 15631
		public const int LineupFieldNumber = 5;

		// Token: 0x04003D10 RID: 15632
		private LineupInfo lineup_;

		// Token: 0x04003D11 RID: 15633
		public const int ReasonFieldNumber = 1;

		// Token: 0x04003D12 RID: 15634
		private OJLOFJKJBOL reason_;

		// Token: 0x04003D13 RID: 15635
		public const int WorldLevelFieldNumber = 4;

		// Token: 0x04003D14 RID: 15636
		private uint worldLevel_;

		// Token: 0x04003D15 RID: 15637
		public const int SceneFieldNumber = 13;

		// Token: 0x04003D16 RID: 15638
		private SceneInfo scene_;
	}
}
